import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import netlify from "@astrojs/netlify/functions"; // https://astro.build/config
import storyblok from "@storyblok/astro";
import mdx from "@astrojs/mdx";

import vue from "@astrojs/vue";

export default defineConfig({

  markdown: {
    shikiConfig: {
      // 选择 Shiki 内置的主题（或添加你自己的主题）
      // https://github.com/shikijs/shiki/blob/main/docs/themes.md
      theme: 'dracula',
      // 添加自定义语言
      // 注意：Shiki 内置了无数语言，包括 .astro！
      // https://github.com/shikijs/shiki/blob/main/docs/languages.md
      langs: [],
      // 启用自动换行，以防止水平滚动
      app: true,
    },
  },
  output: 'hybrid',
  integrations: [
    sitemap(), 
    mdx(), 
    vue(),
  ],
  site: "https://astro-theme-creek.netlify.app/",
  adapter: netlify(),
  integrations: [storyblok({
    accessToken: "<your-access-token>",
    components: {
      page: "storyblok/Page",
      feature: "storyblok/Feature",
      grid: "storyblok/Grid",
      teaser: "storyblok/Teaser"
    }
  }),
  vue(),],
});
